<?php
$LOGOUT_ = mysql_fetch_array(mysql_query("SELECT * FROM `logout` WHERE (`user`='".$U_id."' AND `logout`='0000-00-00 00:00:00' AND `login`!='0000-00-00 00:00:00') ORDER BY `login` DESC LIMIT 1"));
?>
<form target="_parent" name="pre_logout" action="index.php" method="post">
Logout for <?=$U_[name]?>, username: "<?=$U_[username]?>".  (if this is not you, let us know below)
<br /><br />
<input type="checkbox" name="is_showless" value="1" /> Check this box if you were not doing a radio show (just viewing logs, entering other data, etc).<br /><br />
1) Are there CDs or equipment not put away?<br />
<input type="radio" name="is_messy" value="1" /> Nope, it was clean when I got here<br />
<input type="radio" name="is_messy" value="2" /> Nope, it was messy when I got here, but I put everything away<br />
<input type="radio" name="is_messy" value="3" /> Yes, it was messy like this when I got here<br />
<input type="radio" name="is_messy" value="4" /> Yes, I messed this place up<br />
<br /><br />
2) Aside from equipment/CDs, is the station relatively clean?<br />
<input type="radio" name="is_nasty" value="1" /> Yeah, it's clean<br />
<input type="radio" name="is_messy" value="2" /> Yes, but I had to clean it up<br />
<input type="radio" name="is_nasty" value="3" /> No, there is nasty food/stickiness/odors/fluids/orc blood/etc in here<br />
<br /><br />
Please tell us about and major problems/concerns/issues -- did some profanity slip on the air? did you notice a missing CD?  is something broken or is this logging program malfunctioning?<br />
<textarea name="comment"></textarea><br />
<?php
echo($LOGOUT_[login]);
?>
<br /><br />
<input type="hidden" name="id" value="<?=$LOGOUT_[id]?>" />
<input type="hidden" name="do" value="logout" />
<input type="submit" value="Logout >>" /><input type="button" value="Cancel" onClick="history.go(-1)" />
</form>
<br />
<h3>Don't forget to <a href="do/generate_playlist.php">start a new playlist</a> if there's no dj coming in after you!</h3>